import Request from '@/libs/service/index';

import type { IPage } from './type';
import { BASE_URL } from '../../request/config';

enum UserAPI {
    UserList = '/user/list',
    AccountRegister = '/login/register',
}

export function userListRequest(page: IPage) {
    return Request.post({
        url: BASE_URL + UserAPI.UserList,
        data: page,
    });
}